<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:c="http://java.sun.com/jsp/jstl/core"
                template="/template/TCubeTTATemplate.xhtml">

    <ui:define name="contentInsert">

        <h3>Administrative Transaction Analytics Home</h3>
        This section allows admins to perform transaction analysis on Stakeholders.
        <h:form>
            <br/><br/><br/>
            <p:commandButton value="Update DataModels" actionListener="#{schedulerMB.updateAllDataModels}"/>

            <h3>Generate Stakeholder Report</h3>
            Generate a PDF report containing information on all Stakeholders.
            <br/>
            <p:commandButton value="Generate Report" onclick="if (!confirm('Are you sure you want to generate summary?')) return false"
                             action="#{stakeholderAccountsManagerBean.generateReport(event)}"
                             ajax="false"
            />

        </h:form>
    </ui:define>
</ui:composition>

